package io.renren.utils;

/**
 * sql语句中的标识
 */
public enum SqlEnum {
    TABLE_COMMENT(2, "表格评论"),
    COLUMN_COMMENT(3, "字段评论"),
    COLUMN_TYPE(4, "字段类型"),
    COLUMN_CONSTRAINT_NOT_NULL(5, "字段约束,非空"),
    COLUMN_CONSTRAINT_NULL(6, "字段约束,默认为空"),
    COLUMN_CONSTRAINT_AUTO_INCREMENT(7, "字段约束,自增"),
    COLUMN_CONSTRAINT_PRIMARY_KEY(8, "字段约束,主键");

    /**
     * id标识
     */
    private Integer id;

    /**
     * 表示该表示的含义
     */
    private String desc;

    /**
     * 字段对应数据
     */
    private String data;

    SqlEnum(Integer id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
